#ifndef QServerInit_H
#define QServerInit_H

#include "EventGateway.h"
#include "FileTrans.h"
#include <iostream>
using namespace std;

class Engine
{
private:
    EventIn *eIn;
    EventOut *eOut;
    FileIn *fIn;
    FileOut *fOut;
    void init_out_msq();
    void init_FIFO();
public:
    Engine()
    {
        eIn=&EventIn::getInstance();
        eOut=&EventOut::getInstance();
        fIn=&FileIn::getInstance();
        fOut=&FileOut::getInstance();

        init_FIFO();
        init_out_msq();

        eIn->start_recv();
        eOut->start_send();
        fIn->start_recv();
        fOut->start_send();

    }
    ~Engine(){}
};


#endif
